var http=require('http');
var url=require('url');
http.createServer(function (request,response) {
    //参数
    var params = url.parse(request.url,true).query;
    console.log(params);
    for (var key in params){
        response.write(key+"\n");
    }
    //
    response.writeHead(200,{"Content-Type":"text/plain"});
    for (var i=0;i<9;i++){
        response.write("Hello\n");
    }
    response.end("\n");
}).listen(8888);
console.log("服务器监听8888")